<?php

if(!isset($_SESSION))session_start();
include_once('AbstractDao.php');

class DisciplinaDao extends AbstractDao{
    public function __construct(){ 
		parent::__construct();
	}
	  
    
    public function __retornaDisciplinas(){ # Verifica email e senha
     try{
                $retorno = NULL;	
                $resultado = $this->__executeSQL("
                        select * from Disciplina
                           
                ");
                $i = 0;
                while($this->__returnLinesSQL() > $i){
                        $codigo = $this->__returnSpecificContentSQL($i, 'codDisciplina');
                        $nome = $this->__returnSpecificContentSQL($i,'nome');
                        echo '<option value="' . $codigo .'">' . $codigo .' - ' . $nome . "</option>";
                        $i++;
                }
                $this->__freeMemory();
                return $retorno;

        }catch(Exception $e){
                throw $e;
        }
    }	
    
    
}


